<%@ page contentType="text/html; charset=gbk" language="java" errorPage="" %>
<%@ page import="com.jspsmart.upload.*"%>
<%@ page import="java.io.*"%>
<%@ page import="java.io.File"%>
<%
   try{
      if(request.getParameter("filepath")!=null){
         String filepath=(String)request.getParameter("filepath");

         filepath=application.getRealPath(java.io.File.separator)+filepath;

         SmartUpload su = new SmartUpload();

         su.initialize(pageContext);
         System.out.println("4");
         su.setContentDisposition(null);
         su.downloadFile(filepath);
         System.out.println(filepath);
         System.out.println("6");
      }
   }catch(Exception e){
      out.print(e.getMessage());
   }
%>

